package com.scheduling.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scheduling.system.mapper.ShiftmanagementMapper;
import com.scheduling.system.domain.Shiftmanagement;
import com.scheduling.system.service.IShiftmanagementService;

/**
 * 班次管理Service业务层处理
 * 
 * @author mj
 * @date 2025-05-07
 */
@Service
public class ShiftmanagementServiceImpl implements IShiftmanagementService 
{
    @Autowired
    private ShiftmanagementMapper shiftmanagementMapper;

    /**
     * 查询班次管理
     * 
     * @param id 班次管理主键
     * @return 班次管理
     */
    @Override
    public Shiftmanagement selectShiftmanagementById(Long id)
    {
        return shiftmanagementMapper.selectShiftmanagementById(id);
    }

    /**
     * 查询班次管理列表
     * 
     * @param shiftmanagement 班次管理
     * @return 班次管理
     */
    @Override
    public List<Shiftmanagement> selectShiftmanagementList(Shiftmanagement shiftmanagement)
    {
        return shiftmanagementMapper.selectShiftmanagementList(shiftmanagement);
    }

    /**
     * 新增班次管理
     * 
     * @param shiftmanagement 班次管理
     * @return 结果
     */
    @Override
    public int insertShiftmanagement(Shiftmanagement shiftmanagement)
    {
        return shiftmanagementMapper.insertShiftmanagement(shiftmanagement);
    }

    /**
     * 修改班次管理
     * 
     * @param shiftmanagement 班次管理
     * @return 结果
     */
    @Override
    public int updateShiftmanagement(Shiftmanagement shiftmanagement)
    {
        return shiftmanagementMapper.updateShiftmanagement(shiftmanagement);
    }

    /**
     * 批量删除班次管理
     * 
     * @param ids 需要删除的班次管理主键
     * @return 结果
     */
    @Override
    public int deleteShiftmanagementByIds(Long[] ids)
    {
        return shiftmanagementMapper.deleteShiftmanagementByIds(ids);
    }

    /**
     * 删除班次管理信息
     * 
     * @param id 班次管理主键
     * @return 结果
     */
    @Override
    public int deleteShiftmanagementById(Long id)
    {
        return shiftmanagementMapper.deleteShiftmanagementById(id);
    }
}
